//
//  CZStatusRetweetView.swift
//  WeiBoNew
//
//  Created by 秦川 on 16/5/14.
//  Copyright © 2016年 秦川. All rights reserved.
//

import UIKit

class CZStatusRetweetView: UIView {
    
    
    private lazy var contentLabel: UILabel = {
        
   let label = UILabel(textColor: UIColor.grayColor(), textFont: 14)
        label.numberOfLines = 0

    return label
    }()
    
    var statusViewModel: CZStatusViewModel? {
        didSet{
        contentLabel.text = statusViewModel?.retweetContent
        }
    
    
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func setupUI(){
        self.backgroundColor = UIColor(white: 0.95, alpha: 1)
        addSubview(contentLabel)
        
        contentLabel.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(self).offset(StatusTableViewCellMargin)
            make.trailing.equalTo(self).offset(-StatusTableViewCellMargin)
            make.leading.equalTo(self).offset(StatusTableViewCellMargin)
            
        }
        
        self.snp_makeConstraints { (make) -> Void in
            make.bottom.equalTo(contentLabel).offset(StatusTableViewCellMargin)
        }
    }
}
